<div class='wrap-activity-get' ng-controller='ActivityGet'>
	<div class='am-tabs normal-tabs' data-am-tabs>
        <ul class='am-tabs-nav am-nav am-nav-tabs am-avg-sm-3 fixed'>
            <li class='am-active'><a>活动方案</a></li>
            <li><a>家长须知</a></li>
            <li><a>制作相册</a></li>
        </ul>
        <div class='am-tabs-bd' style='margin-top: 45px;'>
            <div class='am-tab-panel box-cont am-active'>
            	<div class='banner'>
            		<img ng-src='{{nActivity.banner}}'>
            	</div>
            	<div class='box-audio'>
            		<div class='title'>专家解读</div>
            		<div class='audio aplayer aplayer-a' id='audio'></div>
            	</div>
            	<div class='box-detail'>
            		<div class='title'>活动详情</div>
            		<div class='content' ng-bind-html='nActivity.content'></div>
                    <div class='i-header' ng-bind-html='nActivity.i_header' id='step-1'></div>
                    <div class='i-audio aplayer aplayer-a' id='i-audio'></div>
                    <div class='i-footer' ng-bind-html='nActivity.i_footer'></div>
                    <div class='ii-cont'  ng-bind-html='nActivity.ii_cont' id='step-2'></div>
                    <div class='iii-cont'  ng-bind-html='nActivity.iii_cont'  id='step-3'></div>
            	</div>
                <div class='box-leave-msg'>
                    <div class='title'>
                        <div>精选留言</div>
                        <hr>
                    </div>
                    <div class='send'>
                        <span ng-click='write_leavemsg()'>写留言<i class='fa fa-pencil'></i></span>
                    </div>
                    <div class='list am-list'>
                        <li ng-repeat='item in leaveMsgList'>
                            <div class='comment am-g am-g-collapse'>
                                <div class='am-u-sm-2 headimg'>
                                    <img ng-src='{{item.headimgurl}}'>
                                </div>
                                <div class='am-u-sm-10'>
                                    <div class='info'>
                                        <span class='nickname'>{{item.nickname}}</span>
                                        <span class='good'><i class='fa fa-thumbs-o-up'></i>100</span>
                                    </div>
                                    <div class='content'>{{item.content}}</div>
                                    <div class='time'>{{item.create_date}}</div>

                                    <div class='reply' ng-if='item.res_content'>
                                        <hr>
                                        <div class='reply-info'>
                                            <span class='nickname'>作者回复</span>
                                            <span class='good'><i class='fa fa-thumbs-o-up'></i>100</span>
                                        </div>
                                        <div class='reply-content'>{{item.res_content}}</div>
                                        <div class='reply-time'>{{item.res_create_date}}</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </div>
                </div>
            </div>
            <div class='am-tab-panel box-known'>
                <div class='banner'>
                    <img ng-src='{{nActivity.banner}}'>
                </div>
                <div class='dialog'>
                    <div class='item' ng-repeat='item in nActivity.known_list'>
                        <div class='question am-g'>
                            <div class='headimg am-u-sm-2'>
                                <img src='../image/logo.png'>
                            </div>
                            <div class='content am-u-sm-10'>
                                <div>{{item.title}}</div>
                            </div>
                        </div>
                        <div class='answer am-g am-g-collapse'>
                            <div class='content am-u-sm-10'>
                                <div ng-click='toggle_aplayer(item)'>
                                    <!-- <i class='fa fa-music' ng-if='!item.is_play'></i>
                                    <i class='fa fa-volume-up' ng-if=' item.is_play'></i> -->
                                    {{item.audio_time}}
                                </div>
                                <div class='known-audio aplayer' id='known-audio-{{item.id}}' style='display:none'></div>
                            </div>
                            <div class='headimg am-u-sm-2'>
                                <img src='../image/logo.png'>
                            </div>
                        </div>
                    </div>
                </div>

                <div class='box-leave-msg'>
                    <div class='title'>
                        <div>精选留言</div>
                        <hr>
                    </div>
                    <div class='send'>
                        <span ng-click='write_leavemsg()'>写留言<i class='fa fa-pencil'></i></span>
                    </div>
                    <div class='list am-list'>
                        <li ng-repeat='item in leaveMsgList'>
                            <div class='comment am-g am-g-collapse'>
                                <div class='am-u-sm-2 headimg'>
                                    <img ng-src='{{item.headimgurl}}'>
                                </div>
                                <div class='am-u-sm-10'>
                                    <div class='info'>
                                        <span class='nickname'>{{item.nickname}}</span>
                                        <span class='good'><i class='fa fa-thumbs-o-up'></i>100</span>
                                    </div>
                                    <div class='content'>{{item.content}}</div>
                                    <div class='time'>{{item.create_date}}</div>

                                    <div class='reply' ng-if='item.res_content'>
                                        <hr>
                                        <div class='reply-info'>
                                            <span class='nickname'>作者回复</span>
                                            <span class='good'><i class='fa fa-thumbs-o-up'></i>100</span>
                                        </div>
                                        <div class='reply-content'>{{item.res_content}}</div>
                                        <div class='reply-time'>{{item.res_create_date}}</div>
                                    </div>
                                </div>
                            </div>
                        </li>
                    </div>
                </div>
            </div>
            <div class='am-tab-panel box-picture' ng-if='pictureList == null'>
                <!-- <div class='tip'>功能开发中，敬请期待...</div> -->
                <div class='box-part picture'>
                    <div class='title'>宝宝自己拍的照片(3张)</div>
                    <div class='content'>
                        <div class='am-avg-sm-3 div-avg'>
                            <li ng-repeat='item in picture.children'>
                                <div class='box-image'>
                                    <img ng-src='{{item}}'>
                                </div>
                            </li>
                            <li ng-if='picture.children.length < 3'>
                                <div class='box-upload-picture'>
                                    <div class='btn-show'></div>
                                    <div class='btn-upload' id='upload-picture-children'></div>
                                </div>
                            </li>
                        </div>
                    </div>
                </div>

                <div class='box-part picture'>
                    <div class='title'>我拍的宝宝的照片(3张)</div>
                    <div class='content'>
                        <div class='am-avg-sm-3 div-avg'>
                            <li ng-repeat='item in picture.parent'>
                                <div class='box-image'>
                                    <img ng-src='{{item}}'>
                                </div>
                            </li>
                            <li ng-if='picture.parent.length < 3'>
                                <div class='box-upload-picture'>
                                    <div class='btn-show'></div>
                                    <div class='btn-upload' id='upload-picture-parent'></div>
                                </div>
                            </li>
                        </div>
                    </div>
                </div>

                <div class='box-button'>
                    <button class='am-btn am-btn-warning am-btn-block' 
                        ng-if='picture.children.length > 0 || picture.parent.length > 0'
                        ng-click='upload_picture()'>
                        生成相册
                    </button>
                    <button class='am-btn am-btn-warning am-btn-block' disabled 
                        ng-if='picture.children.length == 0 && picture.parent.length == 0'>
                        生成相册
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- 锚点导航 -->
    <div class='anchor-nav' ng-if='nTab == 1'>
        <div class='am-list'>
            <li ng-click='goto_anchor("#step-1")'>活动-1</li>
            <li ng-click='goto_anchor("#step-2")'>活动-2</li>
            <li ng-click='goto_anchor("#step-3")'>活动-3</li>
        </div>
    </div>
</div>